<%@ page import="com.ama.utils.SpringUtils" %>
<%@ page import="com.ama.pojo.*" %>
<%@ page import="com.ama.utils.DateUtil" %>
<%@ page import="com.ama.service.impl.*" %>
<%@ page import="com.ama.service.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>员工管理</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/materialdesignicons.min.css" rel="stylesheet">
    <link href="../css/style.min.css" rel="stylesheet">
    <style type="text/css">
        input[],
        .form-control[] {
            background-color: #FFFFFF;
        }
    </style>
</head>

<%
    StaffService staffService = SpringUtils.getBean(StaffServiceImpl.class);
    Long staffID = Long.valueOf(request.getParameter("staffId"));
    Staff staff = staffService.selectById(staffID);
%>

<body>
<div class="container-fluid p-t-15">

    <div class="row">
        <div class="col-lg-12">
            <div class="card">

                <div class="card-body">

                    <form id="p_staffDetailForm" action="/p_updateStaffInfo" method="post" class="guide-box" onsubmit="return p_staffDetailCheck();">

                        <hr>


                        <div class=" text-center m-b-10"><h4>员工信息</h4></div>

                        <div class="row m-b-10">
                            <div class="col-lg-6 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">ID*</button>
                                    </span>
                                    <input name="staffId" type="text" class="form-control"
                                           value="<%=staff.getStaffId()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">密码*</button>
                                    </span>
                                    <input name="password" type="text" class="form-control"
                                           value="<%=staff.getStaffPassword()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">姓名*</button>
                                    </span>
                                    <input name="name" type="text" class="form-control"
                                           value="<%=staff.getStaffName()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">性别</button>
                                    </span>
                                    <input name="gender" type="text" class="form-control"
                                           value="<%=staff.getGender()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">手机*</button>
                                    </span>
                                    <input name="phone" type="text" class="form-control"
                                           value="<%=staff.getStaffPhone()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">学历</button>
                                    </span>
                                    <input name="education" type="text" class="form-control"
                                           value="<%=staff.getEducation()%>">
                                </div>
                            </div>
                            <div class="col-lg-6 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">婚姻状态</button>
                                    </span>
                                    <input name="marriage" type="text" class="form-control"
                                           value="<%=staff.getMarriage()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">身份证号*</button>
                                    </span>
                                    <input name="identity" type="text" class="form-control"
                                           value="<%=staff.getIdentity()%>">
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">入行时间</button>
                                    </span>
                                    <input name="entrytime" type="text" class="form-control"
                                           value="<%=DateUtil.dateToStr(staff.getEntrytime())%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">是否深圳户口</button>
                                    </span>
                                    <input name="hukou" type="text" class="form-control" value="<%=staff.getHukou()%>">
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">家庭是否在深圳</button>
                                    </span>
                                    <input name="family" type="text" class="form-control" value="<%=staff.getFamily()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-12">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">家庭住址</button>
                                    </span>
                                    <input name="address" type="text" class="form-control"
                                           value="<%=staff.getStaffAddress()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">入职部门</button>
                                    </span>
                                    <input name="department" type="text" class="form-control"
                                           value="<%=staff.getDepartment()%>">
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">银行卡号*</button>
                                    </span>
                                    <input name="bankcard" type="text" class="form-control" value="<%=staff.getBankcard()%>">
                                </div>
                            </div>
                        </div>

                        <div class="row m-b-10">
                            <div class="col-lg-3 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">小区编码</button>
                                    </span>
                                    <input id="estateId" name="estateId" type="text" class="form-control" value="<%=staff.getEstateId()%>">
                                </div>
                            </div>
                            <div class="col-lg-3 m-b-10">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">楼栋编码</button>
                                    </span>
                                    <input id="buildId" name="buildId" type="text" class="form-control" value="<%=staff.getBuildId()%>">
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">房间编码</button>
                                    </span>
                                    <input id="roomId" name="roomId" type="text" class="form-control" value="<%=staff.getRoomId()%>">
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="input-group">
                                    <span class="input-group-btn">
                                      <button class="btn btn-default" type="button">铺位编号</button>
                                    </span>
                                    <input id="bedId" name="bedId" type="text" class="form-control" value="<%=staff.getBedId()%>">
                                </div>
                            </div>
                        </div>

                        <div class="nav-step-button">
                            <a href="p_staffmanage.jsp">
                                <button class="btn btn-secondary" data-wizard="prev" type="button">
                                    返回
                                </button>
                            </a>
                            <div class="text-center">
                                <button type="submit" class="btn btn-primary">保存</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>

    </div>

</div>

<%--保存时 input检查--%>
<script type="text/javascript" src="../js/pro_pageJS/p_staffDetailCheck.js"></script>

<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/main.min.js"></script>
<!--向导插件-->
<script type="text/javascript" src="../js/jquery.bootstrap.wizard.min.js"></script>

</body>
</html>
